package main

import "fmt"

type Human interface {
	eat()
}

type Teacher interface {
	Human
	teach()
}

type Student interface {
	Human
	study()
}

type Teachers struct {
	name string
	age int
}

func (t Teachers)eat() {
	fmt.Println("我是老师，我会吃饭~~~")
}

func (t Teachers)teach() {
	fmt.Println("并且我会讲课~~~")
}


type Students struct {
	name string
	age int
}

func (s Students)eat() {
	fmt.Println("我是学生，我也会吃饭~~~")
}

func (s Students)study() {
	fmt.Println("并且我会学习~~~")
}

// func main() {
// 	t := Teachers{name: "张三", age: 32}
// 	t.eat()
// 	t.teach()

// 	s := Students{name: "李四", age: 15}
// 	s.eat()
// 	s.study()
// }